<ul class="navbar-nav">
        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">我的</a>
          <div class="dropdown-menu" aria-labelledby="navbarDropdown">
            <% if (user) { %>
              <a class="dropdown-item" href="/user/<%= user._id %>">个人主页</a>
              <div class="dropdown-divider"></div>
              <a class="dropdown-item" href="/article/create">发表文章</a>
              <a class="dropdown-item" href="/anime/create">发表动漫</a>
              <a class="dropdown-item" href="/signout">登出</a>
            <% } else { %>
              <a class="dropdown-item" href="/signin">登录</a>
              <a class="dropdown-item" href="/signup">注册</a>
            <% } %>
          </div>
        </li>
      </ul>
